﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="nieuwbericht.aspx.cs" Inherits="Quaack.nieuwbericht" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    </asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
        <h3>plaats een nieuw bericht:</h3>
        
        <asp:TextBox ID="txtNieuwbericht" runat="server" Height="125px" Width="600px"></asp:TextBox>
        <br />
        <asp:Button ID="btnNieuwbericht" runat="server" Text="Plaats bericht" OnClick="PlaatsBericht" />
        
        <br />
        <asp:GridView ID="grdUserMessages" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="messid" DataSourceID="sqlUserMessageSource" OnSelectedIndexChanged="grdUserMessages_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="messid" HeaderText="messid" InsertVisible="False" ReadOnly="True" SortExpression="messid" />
                <asp:BoundField DataField="messdatetime" HeaderText="messdatetime" SortExpression="messdatetime" />
                <asp:BoundField DataField="message" HeaderText="message" SortExpression="message" />
            </Columns>
            
        </asp:GridView>
        
        <asp:SqlDataSource ID="sqlUserMessageSource" runat="server" ConnectionString="<%$ ConnectionStrings:Quaack %>">
        </asp:SqlDataSource>
        
        <br />
          
</asp:Content>